import './assets/main.scss'

import { createApp } from 'vue'
import ElementPlus from 'element-plus' 
import 'element-plus/dist/index.css'
//导入路由
import router from '@/router'
import App from './App.vue'
//token
import { createPinia } from 'pinia'
//导入持久化插件(因为刷新页面就没有token)
import {createPersistedState} from'pinia-persistedstate-plugin'
//分页组件变成中文引入组件包
import locale from 'element-plus/dist/locale/zh-cn.js'



const persist = createPersistedState();
const pinia = createPinia();
const app = createApp(App); 
app.use(ElementPlus,{locale});
//pinia使用持久化插件
pinia.use(persist);
app.use(pinia);
app.use(router);

app .mount('#app') 
